<template>
  <div class="box">
    <div class="box-img">
      <!-- 插槽 -->
      <slot name="img">
        <img src="" alt="" />
      </slot>
      <div class="box-abox">
        <slot name="a">
          <a href="javascript:;" class="box-a"></a>
        </slot>
      </div>

      <!-- <a href="javascript:;" class="box-a"></a> -->
      <!-- 盒子底部 -->
      <div class="box-bottom">
        <div class="bottom-left">
          <span class="bottom-icon"></span>
          <!-- 插槽 -->
          <slot name="number">
            <span class="bottom-number"></span>
          </slot>
        </div>
        <slot name="a">
          <a href="javascript:;" title="播放" class="bottom-play"></a>
        </slot>
      </div>
    </div>
    <!-- 文字 -->
    <p class="title">
      <!-- 插槽 -->
      <slot name="p">
        <a href="javascript:;"></a>
      </slot>
      <slot></slot>
    </p>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.bottom-icon,
.bottom-play {
  background: url("https://s2.music.126.net/style/web2/img/iconall.png?c23e7b53fa2a4c621f650c6c06e6f5c4")
    no-repeat;
}

.hot-body {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  .box {
    margin-top: 20px;
    .box-img {
      position: relative;
      width: 140px;
      height: 140px;
      img {
        display: block;
        width: 100%;
        height: 100%;
      }
      .box-abox {
        
        .box-a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("https://s2.music.126.net/style/web2/img/coverall.png?2ac4f0b43a8fc79457fe419254b2f516");
        background-position: 0 0;
      }
      }
      
      .box-bottom {
        background: url("https://s2.music.126.net/style/web2/img/coverall.png?d473f937101bde599087f0bf2d886e0d")
          no-repeat;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 27px;
        background-position: 0 -537px;
        color: #ccc;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .bottom-left {
          display: flex;
          align-items: center;
          justify-content: start;
          .bottom-icon {
            display: inline-block;
            background-position: 0 -25px;
            width: 14px;
            height: 11px;
            line-height: 27px;
            margin: 0 3px;
          }
          .bottom-number {
            line-height: 27px;
          }
        }
        .bottom-play {
          line-height: 27px;
          display: inline-block;
          width: 16px;
          height: 17px;
          background-position: 0 0;
          margin-right: 10px;
          &:hover {
            background-position: 0 -60px;
          }
        }
      }
    }
    .title {
      width: 140px;
      height: 57px;
      font-size: 14px;
      margin: 8px 0 3px;
      a {
        color: #000;
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
}
</style>